//
//  UIViewController+Login.m
//  TTFriend
//
//  Created by 李正兵 on 2019/5/7.
//  Copyright © 2019 李正兵. All rights reserved.
//

#import "UIViewController+Login.h"
#import "LoginViewController.h"

@implementation UIViewController (Login)

- (void)openLogin:(void(^)(BOOL success))completion {

    LoginViewController *loginVC = [[LoginViewController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:loginVC];
    [self presentViewController:nav animated:YES completion:nil];
}
@end
